﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoyoEden.Models;

namespace CoyoEden.Services
{
    public interface IPageService
    {
        /// <summary>
        /// Retrieves a Page from the provider based on the specified id.
        /// </summary>
        Page SelectPage(int id);
        /// <summary>
        /// Inserts a new Page into the data store specified by the provider.
        /// </summary>
        void InsertPage(Page page);
        /// <summary>
        /// Updates an existing Page in the data store specified by the provider.
        /// </summary>
        void UpdatePage(Page page);
        /// <summary>
        /// Deletes a Page from the data store specified by the provider.
        /// </summary>
        void DeletePage(Page page);
        /// <summary>
        /// Retrieves all Pages from the provider and returns them in a List.
        /// </summary>
        List<Page> FillPages();
    }
}
